import java.math.BigInteger;  
import java.util.Scanner;  
  
public class LargeNumberSum {  
    public static void main(String[] args) {  
        Scanner scanner = new Scanner(System.in);  
  
        // 读取第一个大数  
        String num1 = scanner.next();  
        // 读取第二个大数  
        String num2 = scanner.next();  
  
        // 将字符串转换为BigInteger对象  
        BigInteger bigNum1 = new BigInteger(num1);  
        BigInteger bigNum2 = new BigInteger(num2);  
  
        // 计算两数之和  
        BigInteger sum = bigNum1.add(bigNum2);  
  
        // 输出结果  
        System.out.println(sum);  
  
        scanner.close();  
    }  
}